BDB_IGNORE_KEEPTIME = 3 /* Don't check time when packing conferences. */
BDB_NO_XPK_METHOD = 4 /* Don't use any xpk method. */
BDB_EVENTS_CHANGED = 5 /* Events changed after last event package was made. */
BDB_NO_SIGNATURE = 6 /* Don't use signatures. */
BDB_MARK_OWN_MSGS = 7 /* Also mark messages from user when adding messages. */
BDB_NO_TAGS = 8 /* Don't use tags. */
BDB_ADD_USERS = 9 /* Parser should add users to database. */
BDB_FILE_SIGNATURE = 10 /* The Signature field contains the path and name of a file containing the signature. */
BDB_AUTO_XPK_PACK = 11 /* Automatically xpk pack new messages when they are written to this bbs. NB: A xpk method must have been defined. */
BDB_NO_AUTO_XPK_PACK = 12 /* No automatically xpk packing on this bbs. */
BDB_COMMAND_SIGNATURE = 13 /* The signature field contains the path and name of a command. When the command is executed should the signature contents be written to stdout. The template for the command is expected to be BBSNAME/K,CONFNAME/K. */
BDB_REFLOW_QUOTING = 14 /* Reflow quoting should be on as default when answering messages. This flag should only be considered when bd_QuoteType is != QT_USE_SUPER. */
BDB_ALWAYS_REPLY_STR = 15 /* Use reply string on all replies. This flag should only be considered when bd_ReplyString is non NULL. */
BDB_NO_REPLY_STR = 16 /* Don't use reply strings on this bbs. Overrides the setting of bd_ReplyString. */
BDB_GLOBAL_REPLY_STR = 17 /* Use global reply string settings. Overrides all other bbs reply string settings. */
BDB_NO_BBS_ENTER_SCR = 18 /* Don't use a bbs enter script on this bbs. */
BDB_NO_BBS_LEAVE_SCR = 19 /* Don't use a bbs ieave script on this bbs. */
BDB_NO_CONF_ENTER_SCR = 20 /* Don't use a conference enter script on this bbs. */
BDB_NO_CONF_LEAVE_SCR = 21 /* Don't use a conference leave script on this bbs. */
BDB_ENCODE_8BIT_MAIL = 22 /* Encode 8 bits messages in mail conferences. Only appliable when the TDF_SUPPORTS_ENCODE_8BIT_MAIL flag is set for the bbstype. */
BDB_ENCODE_8BIT_MSGS = 23 /* Encode 8 bits messages in public conferences. Only appliable when the TDF_SUPPORTS_ENCODE_8BIT_MSGS flag is set for the bbstype. */
GETBBSDATA argument stem BBSDATA
if(rc ~= 0) then
do
say BBSREAD.LASTERROR
exit
end
say 'Name: ' BBSDATA.NAME
say 'GrabName: ' BBSDATA.GRABNAME
say 'BBSType: ' BBSDATA.BBSTYPE
say 'UserName: ' BBSDATA.USERNAME
say 'Signature: ' BBSDATA.SIGNATURE
say 'LineLength: ' BBSDATA.LINELENGTH
say 'CharSet: ' BBSDATA.CHARSET
bf = ''
if bittst(BBSDATA.FLAGS,BDB_GLOBAL_KEEPMSG) then bf = bf || 'GLOBAL_KEEPMSG '
if bittst(BBSDATA.FLAGS,BDB_GLOBAL_KEEPTIME) then bf = bf || 'GLOBAL_KEEPTIME '
if bittst(BBSDATA.FLAGS,BDB_IGNORE_KEEPMSG) then bf = bf || 'IGNORE_KEEPMSG '
if bittst(BBSDATA.FLAGS,BDB_IGNORE_KEEPTIME) then bf = bf || 'IGNORE_KEEPTIME '
if bittst(BBSDATA.FLAGS,BDB_NO_XPK_METHOD) then bf = bf || 'NO_XPK_METHOD '
if bittst(BBSDATA.FLAGS,BDB_EVENTS_CHANGED) then bf = bf || 'EVENTS_CHANGED '
if bittst(BBSDATA.FLAGS,BDB_NO_SIGNATURE) then bf = bf || 'NO_SIGNATURE '
if bittst(BBSDATA.FLAGS,BDB_MARK_OWN_MSGS) then bf = bf || 'MARK_OWN_MSGS '
if bittst(BBSDATA.FLAGS,BDB_NO_TAGS) then bf = bf || 'NO_TAGS '
if bittst(BBSDATA.FLAGS,BDB_ADD_USERS) then bf = bf || 'ADD_USERS '
if bittst(BBSDATA.FLAGS,BDB_FILE_SIGNATURE) then bf = bf || 'FILE_SIGNATURE '
if bittst(BBSDATA.FLAGS,BDB_AUTO_XPK_PACK) then bf = bf || 'AUTO_XPK_PACK '
if bittst(BBSDATA.FLAGS,BDB_NO_AUTO_XPK_PACK) then bf = bf || 'NO_AUTO_XPK_PACK '
if bittst(BBSDATA.FLAGS,BDB_COMMAND_SIGNATURE) then bf = bf || 'COMMAND_SIGNATURE '
if bittst(BBSDATA.FLAGS,BDB_REFLOW_QUOTING) then bf = bf || 'REFLOW_QUOTING '
if bittst(BBSDATA.FLAGS,BDB_ALWAYS_REPLY_STR) then bf = bf || 'ALWAYS_REPLY_STR '
if bittst(BBSDATA.FLAGS,BDB_NO_REPLY_STR) then bf = bf || 'NO_REPLY_STR '
if bittst(BBSDATA.FLAGS,BDB_GLOBAL_REPLY_STR) then bf = bf || 'GLOBAL_REPLY_STR '
if bittst(BBSDATA.FLAGS,BDB_NO_BBS_ENTER_SCR) then bf = bf || 'NO_BBS_ENTER_SCR '
if bittst(BBSDATA.FLAGS,BDB_NO_BBS_LEAVE_SCR) then bf = bf || 'NO_BBS_LEAVE_SCR '
if bittst(BBSDATA.FLAGS,BDB_NO_CONF_ENTER_SCR) then bf = bf || 'NO_CONF_ENTER_SCR '
if bittst(BBSDATA.FLAGS,BDB_NO_CONF_LEAVE_SCR) then bf = bf || 'NO_CONF_LEAVE_SCR '
if bittst(BBSDATA.FLAGS,BDB_ENCODE_8BIT_MAIL) then bf = bf || 'ENCODE_8BIT_MAIL '
if bittst(BBSDATA.FLAGS,BDB_ENCODE_8BIT_MSGS) then bf = bf || 'ENCODE_8BIT_MSGS '